<template>
    <div style="background-color: lightpink;">
        我是女儿
        <button @click="$emit('girl',98)">向老爸汇报成绩</button>
        <p>我获得了5000奖学金，给老爸3000 <button @click.once="store.increment(3000)">给老爸钱</button></p>
    </div>
</template>

<script>
import { useMyStore } from '@/store/myStore';

export default {
    data() {
        return {
            store:useMyStore()
        }
    },
}
</script>